#include <Button.h>

PeopleButton::PeopleButton(FormatRadioButton& formatRadioButton)
:formatRadioButton_m(formatRadioButton)
{

}

void PeopleButton::onClick()
{
	pBoxCommon_m->display(*pOstr_m);
}

void PeopleButton::setPeopleList(ostringstream& ostr, ListBoxPeople& boxCommon)
{
	pOstr_m = &ostr;
	pBoxCommon_m = &boxCommon;
}
